package com.cuijq.counterv3.reporter;

import com.google.gson.Gson;
import java.util.Map;

/**
 * @Classname ConsoleReporter
 * @Description TODO
 * @Date 2021/4/30 14:12
 * @Created by CuiJQ
 */
public class ConsoleViewer implements StatViewer {

  public void output(Map requestStats, long startTimeInMillis, long endTimeInMills) {
    System.out.println("Time Span: [" + startTimeInMillis + ", " + endTimeInMills + "]");
    Gson gson = new Gson();
    System.out.println(gson.toJson(requestStats));
  }
}